/*
 * ChooseSound.java
 *
 * Created on October 24, 2007, 2:00 PM
 */

package jia.editor.dialogues;

/**
 *
 * @author  estell
 */
public class ChooseSound extends javax.swing.JDialog {
    
    /** Creates new form ChooseSound */
    public ChooseSound(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        btn_OK = new javax.swing.JButton();
        btn_Cancel = new javax.swing.JButton();
        txt_FilePath = new javax.swing.JTextField();
        btn_Browse = new javax.swing.JButton();
        btn_Play = new javax.swing.JButton();
        btn_Stop = new javax.swing.JButton();
        lbl_ChooseSoundFilePath = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle(java.util.ResourceBundle.getBundle("jia_ui/images/formUI").getString("dlg_ChooseSound"));
        setLocationByPlatform(true);
        setModal(true);
        setResizable(false);
        btn_OK.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jia_ui/images/accept.png")));
        btn_OK.setText(java.util.ResourceBundle.getBundle("jia_ui/images/formUI").getString("btn_OK"));
        btn_OK.setSelected(true);
        btn_OK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_OKActionPerformed(evt);
            }
        });

        btn_Cancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jia_ui/images/door_out.png")));
        btn_Cancel.setText(java.util.ResourceBundle.getBundle("jia_ui/images/formUI").getString("btn_Cancel_lbl"));
        btn_Cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_CancelActionPerformed(evt);
            }
        });

        btn_Browse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jia_ui/images/application_get.png")));
        btn_Browse.setText(java.util.ResourceBundle.getBundle("jia_ui/images/formUI").getString("btn_Browse"));
        btn_Browse.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_BrowseActionPerformed(evt);
            }
        });

        btn_Play.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jia_ui/images/control_play_blue.png")));
        btn_Play.setText(java.util.ResourceBundle.getBundle("jia_ui/images/formUI").getString("btn_Play_lbl"));
        btn_Play.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_PlayActionPerformed(evt);
            }
        });

        btn_Stop.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jia_ui/images/control_stop_blue.png")));
        btn_Stop.setText("Stop");
        btn_Stop.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_StopActionPerformed(evt);
            }
        });

        lbl_ChooseSoundFilePath.setText("Sound File:");

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                        .add(btn_Cancel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btn_OK))
                    .add(layout.createSequentialGroup()
                        .add(lbl_ChooseSoundFilePath)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(txt_FilePath, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btn_Browse))
                    .add(layout.createSequentialGroup()
                        .add(btn_Play)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btn_Stop)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(txt_FilePath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btn_Browse)
                    .add(lbl_ChooseSoundFilePath))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(btn_Play)
                    .add(btn_Stop))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(btn_OK)
                    .add(btn_Cancel))
                .addContainerGap())
        );
        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btn_PlayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_PlayActionPerformed
// TODO add your handling code here:
    }//GEN-LAST:event_btn_PlayActionPerformed

    private void btn_StopActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_StopActionPerformed
// TODO add your handling code here:
    }//GEN-LAST:event_btn_StopActionPerformed

    private void btn_BrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_BrowseActionPerformed
// TODO add your handling code here:
    }//GEN-LAST:event_btn_BrowseActionPerformed

    private void btn_CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_CancelActionPerformed
        this.dispose();
    }//GEN-LAST:event_btn_CancelActionPerformed

    private void btn_OKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_OKActionPerformed
        this.dispose();
    }//GEN-LAST:event_btn_OKActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btn_Browse;
    private javax.swing.JButton btn_Cancel;
    private javax.swing.JButton btn_OK;
    private javax.swing.JButton btn_Play;
    private javax.swing.JButton btn_Stop;
    private javax.swing.JLabel lbl_ChooseSoundFilePath;
    private javax.swing.JTextField txt_FilePath;
    // End of variables declaration//GEN-END:variables
    
}
